package org.patterns.structural.bridge;


//客户端测试类
public class Client {
    public static void main(String[] args) {
        //针对抽象目标接口编程，读取配置文件，反射生成对象
        Image image = (Image) XMLUtil.getBean("image");
        ImageRenderer renderer = (ImageRenderer) XMLUtil.getBean("os");
        image.setImageRenderer(renderer);
        image.parseFile("威尼斯水城");
    }
}